package com.kk.xhr.model.dto;

import com.kk.xhr.common.pojo.BinaryEnum;
import com.kk.xhr.common.pojo.RewardTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 奖惩dto
 *
 * @author kkmystery
 * @version 1.0 2021/3/6
 * @since 1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class RewardDTO {
    /** 主键id */
    private Long id;
    /** 用户id */
    private Long userId;
    /** 奖惩类型：0=实习生奖，1=功劳奖 */
    private RewardTypeEnum type;
    /** 奖金 */
    private Long money;
    /** 原因 */
    private String reason;
    /** 奖惩时间 */
    private LocalDateTime rewardDate;
    /** 状态 */
    private BinaryEnum status;
    /** 创建时间 */
    private LocalDateTime created;
    /** 更新时间 */
    private LocalDateTime updated;
}
